#include <QCoreApplication>
#include "datarecord.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    DataRecord *dataRecord = new DataRecord("datarecord.csv", 1, 100);

    int array1[10] = {1,2,3,4,5,6,7,8,9,11};
    float array2[10] = {1.1,2.1,3.3,4.4,5.5,6.6,7.7,8.8,9.9,0.0};
    double array3[10] = {21.1,22.1,23.3,24.4,25.5,26.6,27.7,28.8,29.9,20.0};
    for (int i = 0; i < 10; i++)
    {
        dataRecord->addItem();
        dataRecord->writeRecord(array1[i]) ;
        dataRecord->writeRecord(array2[i]) ;
        dataRecord->writeRecord(array3[i]) ;
    }
while(1) ;
    return a.exec();
}
